<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="target-densitydpi=device-dpi, height=660, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
  <title>Blockly Demo：Blockly开发工具</title>
  <link rel="stylesheet" href="../../../css/mdui.min.css">
  <script src="../../../js/mdui.min.js"></script>
  <script src="../../blockly_compressed.js"></script>
  <script src="../../javascript_compressed.js"></script>
  <script src="../../msg/js/en.js"></script>
  <script src="../../msg/js/zh-hans.js"></script>
  <script src="../../blocks_compressed.js"></script>
  <script src="../../../closure-library/closure/goog/base.js"></script>
  <script src="factory_utils.js"></script>
  <script src="workspacefactory/wfactory_model.js"></script>
  <script src="standard_categories.js"></script>
  <script src="workspacefactory/wfactory_controller.js"></script>
  <script src="workspacefactory/wfactory_view.js"></script>
  <script src="workspacefactory/wfactory_generator.js"></script>
  <script src="workspacefactory/wfactory_init.js"></script>
  <script src="block_option.js"></script>
  <script src="factory.js"></script>
  <script src="block_library_view.js"></script>
  <script src="block_library_storage.js"></script>
  <script src="block_library_controller.js"></script>
  <script src="block_exporter_tools.js"></script>
  <script src="block_exporter_view.js"></script>
  <script src="block_exporter_controller.js"></script>
  <script src="blocks.js"></script>
  <script src="app_controller.js"></script>
  <script src="/storage.js"></script>
  <link rel="stylesheet" href="factory.css">
  <link rel="stylesheet" href="../prettify.css">
  <script src="../prettify.js"></script>
  <script>
    var blocklyFactory;
    var init = function() {
      blocklyFactory = new AppController();
      blocklyFactory.init();
      window.addEventListener('beforeunload', blocklyFactory.confirmLeavePage);
    };
    window.addEventListener('load', init);
  </script>
</head>
<body class="mdui-typo mdui-appbar-with-toolbar mdui-appbar-with-tab">
<div class="mdui-appbar mdui-appbar-fixed">
<div class="mdui-toolbar mdui-color-indigo">
<a class="mdui-btn mdui-ripple" href="../index.html"><i class="mdui-icon material-icons">arrow_back</i><span>主页</span></a>
<span class="mdui-typo-title">积木工厂</span>
  <div class="mdui-toolbar-spacer"></div>
      <button class="mdui-btn mdui-ripple" id="helpButton" title="View documentation in new window.">
      <span>Help</span>
    </button>
  <a class="mdui-btn mdui-btn-icon mdui-ripple" href="accounts.html"><div id="account_icon"><i class="mdui-icon material-icons">account_circle</i></div></a>
</div>
  <div class="mdui-tab mdui-color-indigo" mdui-tab>
    <a class="mdui-ripple" id="blockFactory_tab">块工厂</a>
    <a class="mdui-ripple" id="blocklibraryExporter_tab">块管理</a>
    <a class="mdui-ripple" id="workspaceFactory_tab">工作区工厂</a>
  </div>
</div>
  </h1>
</br>

  <!-- Exporter tab -->
  <div id="blockLibraryExporter">
    <br>
    <p>
      首先，通过点击它们从块库中选择块。 然后，使用“导出设置”窗体下载所选块的入门代码。
    </p>
    <div id="exportSelector">
      <br>
      <h3>块选择器</h3>
      <div class="dropdown">
        <button class="mdui-btn mdui-ripple" id="button_setBlocks">选择</button>
        <div id="dropdownDiv_setBlocks" class="dropdown-content">
          <a id="dropdown_addAllFromLib" title="选择所有块库块">全部存储在块库中</a>
          <a id="dropdown_addAllUsed" title="选择工作区中使用的所有块库块">全部用于工作区工厂</a>
        </div>
        <button class="mdui-btn mdui-ripple" id="clearSelectedButton" title="Clear selected blocks.">清除所选</a>
      </div>

      <div id="blockSelector"></div>
    </div>

    <!-- Users may customize export settings through this form -->
    <div id="exportSettings">
      <br>
      <h3> 导出设置 </h3>
      <form id="exportSettingsForm">

        <div id="selectedBlocksTextContainer">
          <p>目前选择：</p>
          <p id="selectedBlocksText"></p>
        </div>
        <label><input type="checkbox" id="blockDefCheck">块定义</label><br>
        <div id="blockDefSettings" class="subsettings">
          <label>Format:
          <select class="mdui-select" id="exportFormat">
            <option value="JSON">JSON</option>
            <option value="JavaScript">JavaScript</option>
          </select></label>
          <br>
          <label>文件名：<br>
          <input type="text" id="blockDef_filename"></label>
        </div>
        <br>

        <label><input type="checkbox" id="genStubCheck">块代码</label><br>
        <div id="genStubSettings" class="subsettings">
          <label>Language:
          <select class="mdui-select" id="exportLanguage">
            <option value="JavaScript">JavaScript</option>
            <option value="Python">Python</option>
            <option value="PHP">PHP</option>
            <option value="Lua">Lua</option>
            <option value="Dart">Dart</option>
          </select></label>
          <br>
          <label>文件名：<br>
          <input type="text" id="generatorStub_filename"></label><br>
        </div>
        <br>
      </form>
      <button class="mdui-btn mdui-ripple" id="exporterSubmitButton" title="下载导出设置中指定的块启动器代码">下载</button>
    </div>
    <div id="exportPreview">
      <br>
      <h3>导出预览</h3>
      <div id="blockDefs" class="exportPreviewTextArea">
        <p id="blockDefs_label">块定义:</p>
        <pre id="blockDefs_textArea"></pre>
      </div>
      <div id="genStubs" class="exportPreviewTextArea">
        <p id="genStubs_label">块代码:</p>
        <pre id="genStubs_textArea"></pre>
      </div>
    </div>
  </div>

  <!-- Workspace Factory tab -->

  <div id="workspaceFactoryContent">
    <div id="factoryHeader">
      <p>
        <div class="dropdown">
        <button class="mdui-btn mdui-ripple" id="button_importBlocks">导入自定义块</button>
          <div id="dropdownDiv_importBlocks" class="dropdown-content">
            <input type="file" id="input_importBlocksJson" accept=".js, .json, .txt" class="inputfile"</input>
            <label for="input_importBlocksJson">从JSON</label>
            <input type="file" id="input_importBlocksJs" accept=".js, .txt" class="inputfile"</input>
            <label for="input_importBlocksJs">从Javascript</label>
          </div>
        </div>

        <div class="dropdown">
        <button class="mdui-btn mdui-ripple" id="button_load">加载到编辑</button>
          <div id="dropdownDiv_load" class="dropdown-content">
            <input type="file" id="input_loadToolbox" accept=".xml" class="inputfile"></input>
            <label for="input_loadToolbox">工具箱</label>
            <input type="file" id="input_loadPreload" accept=".xml" class="inputfile"</input>
            <label for="input_loadPreload">工作区块</label>
          </div>
        </div>

        <div class="dropdown">
        <button class="mdui-btn mdui-ripple" id="button_export">下载</button>
          <div id="dropdownDiv_export" class="dropdown-content">
            <a id="dropdown_exportOptions">入门代码</a>
            <a id="dropdown_exportToolbox">工具箱</a>
            <a id="dropdown_exportPreload">工作区块</a>
            <a id="dropdown_exportAll">所有</a>
          </div>
        </div>

        <button class="mdui-btn mdui-ripple" id="button_clear">清除</button>
      </p>
    </div>

    <section id="createDiv">
      <div id="createHeader">
        <h3>编辑</h3>
        <p id="editHelpText">将块拖入工作区以在自定义工作区中配置工具箱</p>
      </div>
      <table id="workspaceTabs" style="width:auto; height:auto">
        <tr>
          <td id="tab_toolbox" class="tabon">工具箱</td>
          <td id="tab_preload" class="taboff">工作区</td>
        </tr>
      </table>
      <section id="toolbox_section">
        <div id="toolbox_blocks"></div>
      </section>
      <aside id="toolbox_div">
        <p id="categoryHeader">你目前没有类别</p>
        <table id="categoryTable" style="width:auto; height:auto">
        </table>
        <p>&nbsp;</p>

        <div class="dropdown">
          <button class="mdui-btn mdui-ripple" id="button_add" class="large">+</button>
          <div id="dropdownDiv_add" class="dropdown-content">
            <a id="dropdown_newCategory">新类别</a>
            <a id="dropdown_loadCategory">标准类别</a>
            <a id="dropdown_separator">分隔器</a>
            <a id="dropdown_loadStandardToolbox">标准工具箱</a>
          </div>
        </div>

        <button class="mdui-btn mdui-ripple" id="button_remove" class="large">-</button>

        <button class="mdui-btn mdui-ripple" id="button_up" class="large">&#8593;</button>
        <button class="mdui-btn mdui-ripple" id="button_down" class="large">&#8595;</button>

        <br>
        <div class="dropdown">
          <button class="mdui-btn mdui-ripple" id="button_editCategory">编辑类别</button>
          <div id="dropdownDiv_editCategory" class="dropdown-content">
            <a id='dropdown_name'>名称</a>
            <a id='dropdown_color'>颜色</a>
          </div>
        </div>

      </aside>

      <button class="mdui-btn mdui-ripple" id="button_addShadow" style="display: none">做阴影</button>
      <button class="mdui-btn mdui-ripple" id="button_removeShadow" style="display: none">删除阴影</button>

      <aside id="preload_div" style="display:none">
        <div id="preloadHelp">
          <p>配置Blockly注入呼叫的选项</p>
          <button class="mdui-btn mdui-ripple" id="button_optionsHelp">Help</button>
          <button class="mdui-btn mdui-ripple" class="small" id="button_standardOptions">重置为默认</button>
        </div>
        <div id="workspace_options">
          <label><input type="checkbox" id="option_readOnly_checkbox">只读</label><br>
          <label><input type="checkbox" id="option_grid_checkbox">使用网格</label><br>
          <div id="grid_options" style="display: none">
            <label>间距 <input type="number" id="gridOption_spacing_number" style="width: 3em"></label><br>
            <label>长度 <input type="number" id="gridOption_length_number" style="width: 3em"></label><br>
            <label>颜色 <input type="text" id="gridOption_colour_text" style="width: 8em"></label><br>
            <div id="readonly1">
              <label><input type="checkbox" id="gridOption_snap_checkbox">Snap</label><br>
            </div>
          </div>
          <label>Blockly媒体的路径 <input type="text" id="option_media_text" style="width: 90%"></label><br>
          <label><input type="checkbox" id="option_rtl_checkbox">RTL布局</label><br>
          <label><input type="checkbox" id="option_scrollbars_checkbox">滚动条</label><br>
          <label><input type="checkbox" id="option_zoom_checkbox">放大</label><br>
          <div id="zoom_options" style="display: none">
            <label><input type="checkbox" id="zoomOption_controls_checkbox">缩放控件</label><br>
            <label><input type="checkbox" id="zoomOption_wheel_checkbox">变焦轮</label><br>
            <label>开始规模 <input type="number" id="zoomOption_startScale_number" style="width: 4em"></label><br>
            <label>最大规模 <input type="number" id="zoomOption_maxScale_number" style="width: 4em"></label><br>
            <label>最小规模 <input type="number" id="zoomOption_minScale_number" style="width: 4em"></label><br>
            <label>规模速度 <input type="number" id="zoomOption_scaleSpeed_number" style="width: 4em"></label><br>
          </div>
          <label><input type="checkbox" id="option_css_checkbox">使用Blockly CSS</label><br>
          <div id="readonly2">
            <label><input type="checkbox" id="option_collapse_checkbox">可折叠块</label><br>
            <label><input type="checkbox" id="option_comments_checkbox">块的注释</label><br>
            <label><input type="checkbox" id="option_disable_checkbox">禁用块</label><br>
            <label><input type="checkbox" id="option_infiniteBlocks_checkbox">无限块</label><br>
            <div id="maxBlockNumber_option" style="display: none">
              <label>最大块 <input type="number" id="option_maxBlocks_number" style="width: 5em"></label><br>
            </div>
            <label><input type="checkbox" id="option_horizontalLayout_checkbox">水平工具箱</label><br>
            <label><input type="checkbox" id="option_toolboxPosition_checkbox">工具箱结束</label><br>
            <label><input type="checkbox" id="option_oneBasedIndex_checkbox">基于一个索引</label><br>
            <label><input type="checkbox" id="option_sounds_checkbox">声音<br>
            <label><input type="checkbox" id="option_trashcan_checkbox">垃圾箱</label><br>
          </div>
        </div>
      </aside>

    </section>

    <aside id="previewDiv">
      <div id="previewBorder">
        <div id="previewHelp">
          <h3>预览</h3>
          <p>这就是您的自定义工作区</p>
        </div>
        <div id="preview_blocks" class="content"></div>
      </div>
    </aside>
  </div>

  <!-- Blockly Factory Tab -->
  <table id="blockFactoryContent">
    <tr width="100%" height="10%">
      <td width="50%" height="5%">
        <table>
          <tr id="blockLibrary">
            <td id="blockLibraryContainer">
            </span>
            </td>
            <td id="blockLibraryControls">
			<div class="dropdown">
                <button class="mdui-btn mdui-ripple" id="button_blockLib">功能块库</button>
                <div id="dropdownDiv_blockLib" class="dropdown-content">
                  <a class="mdui-ripple" id="createNewBlockButton">创建新块</a>
                </div>
              </div>
            <button class="mdui-btn mdui-ripple" id="saveToBlockLibraryButton" title="Save block to Block Library.">
              保存“block_type”
            </button>
            <button class="mdui-btn mdui-ripple" id="removeBlockFromLibraryButton" title="Remove block from Block Library.">
              删除“block_type”
            </button>
            </td>
          </tr>
        </table>
      </td>
      <td height="5%">
        <table id="blockFactoryPreview">
          <tr>
            <td id="previewContainer">
              <h3>预览:
                <select class="mdui-select" id="direction">
                  <option value="ltr">LTR</option>
                  <option value="rtl">RTL</option>
                </select>
              </h3>
            </td>
            <td id="buttonContainer">
              <button class="mdui-btn mdui-ripple" id="linkButton" title="Save and link to blocks.">
                <img src="link.png" height="21" width="21">
              </button>
              <button class="mdui-btn mdui-ripple" id="clearBlockLibraryButton" title="Clear Block Library.">
                <span>清库</span>
              </button>
              <label for="files" class="mdui-btn">
                <span>导入块库</span>
              </label>
              <input id="files" type="file" name="files"
                  accept="application/xml">
              <button class="mdui-btn mdui-ripple" id="localSaveButton" title="Save block library XML to a local file.">
                <span>下载块库</span>
              </button>
            </td>
          </tr>
        </table>
      </td>
    </tr>
    <tr height="80%">
      <td id="blocklyWorkspaceContainer">
        <div id="blockly"></div>
        <div id="blocklyMask"></div>
      </td>
      <td width="50%">
        <table id="blocklyPreviewContainer">
          <tr>
            <td height="30%">
              <div id="preview"></div>
            </td>
          </tr>
          <tr>
            <td height="5%">
              <h3>块定义:
                <select class="mdui-select" id="format">
                  <option value="JSON">JSON</option>
                  <option value="JavaScript">JavaScript</option>
                  <option value="Manual">手动编辑&hellip;</option>
                </select>
              </h3>
            </td>
          </tr>
          <tr>
            <td height="30%">
              <pre id="languagePre"></pre>
              <textarea id="languageTA"></textarea>
            </td>
          </tr>
          <tr>
            <td height="5%">
              <h3>块代码:
                <select class="mdui-select" id="language">
                  <option value="JavaScript">JavaScript</option>
                  <option value="Python">Python</option>
                  <option value="PHP">PHP</option>
                  <option value="Lua">Lua</option>
                  <option value="Dart">Dart</option>
                </select>
              </h3>
            </td>
          </tr>
          <tr>
            <td height="30%">
              <pre id="generatorPre"></pre>
            </td>
          </tr>
        </table>
      </td>
      </tr>
  </table>

  <div id="modalShadow"></div>

  <xml id="blockfactory_toolbox" class="toolbox">
    <category name="输入">
      <block type="input_value">
        <value name="TYPE">
          <shadow type="type_null"></shadow>
        </value>
      </block>
      <block type="input_statement">
        <value name="TYPE">
          <shadow type="type_null"></shadow>
        </value>
      </block>
      <block type="input_dummy"></block>
    </category>
    <category name="控件">
      <block type="field_static"></block>
      <block type="field_input"></block>
      <block type="field_number"></block>
      <block type="field_angle"></block>
      <block type="field_dropdown"></block>
      <block type="field_checkbox"></block>
      <block type="field_colour"></block>
      <!--
      Date picker commented out since it increases footprint by 60%.
      Add it only if you need it.  See also goog.require in blockly.js.
      <block type="field_date"></block>
      -->
      <block type="field_variable"></block>
      <block type="field_image"></block>
    </category>
    <category name="类型">
      <block type="type_group"></block>
      <block type="type_null"></block>
      <block type="type_boolean"></block>
      <block type="type_number"></block>
      <block type="type_string"></block>
      <block type="type_list"></block>
      <block type="type_other"></block>
    </category>
    <category name="颜色" id="colourCategory">
      <block type="colour_hue"><mutation colour="20"></mutation><field name="HUE">20</field></block>
      <block type="colour_hue"><mutation colour="65"></mutation><field name="HUE">65</field></block>
      <block type="colour_hue"><mutation colour="120"></mutation><field name="HUE">120</field></block>
      <block type="colour_hue"><mutation colour="160"></mutation><field name="HUE">160</field></block>
      <block type="colour_hue"><mutation colour="210"></mutation><field name="HUE">210</field></block>
      <block type="colour_hue"><mutation colour="230"></mutation><field name="HUE">230</field></block>
      <block type="colour_hue"><mutation colour="260"></mutation><field name="HUE">260</field></block>
      <block type="colour_hue"><mutation colour="290"></mutation><field name="HUE">290</field></block>
      <block type="colour_hue"><mutation colour="330"></mutation><field name="HUE">330</field></block>
    </category>
  </xml>

  <xml id="workspacefactory_toolbox" class="toolbox">
    <category name="逻辑" colour="210">
      <block type="controls_if"></block>
      <block type="logic_compare"></block>
      <block type="logic_operation"></block>
      <block type="logic_negate"></block>
      <block type="logic_boolean"></block>
      <block type="logic_null"></block>
      <block type="logic_ternary"></block>
    </category>
    <category name="循环" colour="120">
      <block type="controls_repeat_ext">
        <value name="TIMES">
          <shadow type="math_number">
            <field name="NUM">10</field>
          </shadow>
        </value>
      </block>
      <block type="controls_whileUntil"></block>
      <block type="controls_for">
        <value name="FROM">
          <shadow type="math_number">
            <field name="NUM">1</field>
          </shadow>
        </value>
        <value name="TO">
          <shadow type="math_number">
            <field name="NUM">10</field>
          </shadow>
        </value>
        <value name="BY">
          <shadow type="math_number">
            <field name="NUM">1</field>
          </shadow>
        </value>
      </block>
      <block type="controls_forEach"></block>
      <block type="controls_flow_statements"></block>
    </category>
    <category name="数学" colour="230">
      <block type="math_number"></block>
      <block type="math_arithmetic">
        <value name="A">
          <shadow type="math_number">
            <field name="NUM">1</field>
          </shadow>
        </value>
        <value name="B">
          <shadow type="math_number">
            <field name="NUM">1</field>
          </shadow>
        </value>
      </block>
      <block type="math_single">
        <value name="NUM">
          <shadow type="math_number">
            <field name="NUM">9</field>
          </shadow>
        </value>
      </block>
      <block type="math_trig">
        <value name="NUM">
          <shadow type="math_number">
            <field name="NUM">45</field>
          </shadow>
        </value>
      </block>
      <block type="math_constant"></block>
      <block type="math_number_property">
        <value name="NUMBER_TO_CHECK">
          <shadow type="math_number">
            <field name="NUM">0</field>
          </shadow>
        </value>
      </block>
      <block type="math_round">
        <value name="NUM">
          <shadow type="math_number">
            <field name="NUM">3.1</field>
          </shadow>
        </value>
      </block>
      <block type="math_on_list"></block>
      <block type="math_modulo">
        <value name="DIVIDEND">
          <shadow type="math_number">
            <field name="NUM">64</field>
          </shadow>
        </value>
        <value name="DIVISOR">
          <shadow type="math_number">
            <field name="NUM">10</field>
          </shadow>
        </value>
      </block>
      <block type="math_constrain">
        <value name="VALUE">
          <shadow type="math_number">
            <field name="NUM">50</field>
          </shadow>
        </value>
        <value name="LOW">
          <shadow type="math_number">
            <field name="NUM">1</field>
          </shadow>
        </value>
        <value name="HIGH">
          <shadow type="math_number">
            <field name="NUM">100</field>
          </shadow>
        </value>
      </block>
      <block type="math_random_int">
        <value name="FROM">
          <shadow type="math_number">
            <field name="NUM">1</field>
          </shadow>
        </value>
        <value name="TO">
          <shadow type="math_number">
            <field name="NUM">100</field>
          </shadow>
        </value>
      </block>
      <block type="math_random_float"></block>
    </category>
    <category name="文本" colour="160">
      <block type="text"></block>
      <block type="text_join"></block>
      <block type="text_append">
        <value name="TEXT">
          <shadow type="text"></shadow>
        </value>
      </block>
      <block type="text_length">
        <value name="VALUE">
          <shadow type="text">
            <field name="TEXT">abc</field>
          </shadow>
        </value>
      </block>
      <block type="text_isEmpty">
        <value name="VALUE">
          <shadow type="text">
            <field name="TEXT"></field>
          </shadow>
        </value>
      </block>
      <block type="text_indexOf">
        <value name="VALUE">
          <block type="variables_get">
            <field name="VAR">text</field>
          </block>
        </value>
        <value name="FIND">
          <shadow type="text">
            <field name="TEXT">abc</field>
          </shadow>
        </value>
      </block>
      <block type="text_charAt">
        <value name="VALUE">
          <block type="variables_get">
            <field name="VAR">text</field>
          </block>
        </value>
      </block>
      <block type="text_getSubstring">
        <value name="STRING">
          <block type="variables_get">
            <field name="VAR">text</field>
          </block>
        </value>
      </block>
      <block type="text_changeCase">
        <value name="TEXT">
          <shadow type="text">
            <field name="TEXT">abc</field>
          </shadow>
        </value>
      </block>
      <block type="text_trim">
        <value name="TEXT">
          <shadow type="text">
            <field name="TEXT">abc</field>
          </shadow>
        </value>
      </block>
      <block type="text_print">
        <value name="TEXT">
          <shadow type="text">
            <field name="TEXT">abc</field>
          </shadow>
        </value>
      </block>
      <block type="text_prompt_ext">
        <value name="TEXT">
          <shadow type="text">
            <field name="TEXT">abc</field>
          </shadow>
        </value>
      </block>
    </category>
    <category name="列表" colour="260">
      <block type="lists_create_with">
        <mutation items="0"></mutation>
      </block>
      <block type="lists_create_with"></block>
      <block type="lists_repeat">
        <value name="NUM">
          <shadow type="math_number">
            <field name="NUM">5</field>
          </shadow>
        </value>
      </block>
      <block type="lists_length"></block>
      <block type="lists_isEmpty"></block>
      <block type="lists_indexOf">
        <value name="VALUE">
          <block type="variables_get">
            <field name="VAR">list</field>
          </block>
        </value>
      </block>
      <block type="lists_getIndex">
        <value name="VALUE">
          <block type="variables_get">
            <field name="VAR">list</field>
          </block>
        </value>
      </block>
      <block type="lists_setIndex">
        <value name="LIST">
          <block type="variables_get">
            <field name="VAR">list</field>
          </block>
        </value>
      </block>
      <block type="lists_getSublist">
        <value name="LIST">
          <block type="variables_get">
            <field name="VAR">list</field>
          </block>
        </value>
      </block>
      <block type="lists_split">
        <value name="DELIM">
          <shadow type="text">
            <field name="TEXT">,</field>
          </shadow>
        </value>
      </block>
      <block type="lists_sort"></block>
    </category>
    <category name="颜色" colour="20">
      <block type="colour_picker"></block>
      <block type="colour_random"></block>
      <block type="colour_rgb">
        <value name="RED">
          <shadow type="math_number">
            <field name="NUM">100</field>
          </shadow>
        </value>
        <value name="GREEN">
          <shadow type="math_number">
            <field name="NUM">50</field>
          </shadow>
        </value>
        <value name="BLUE">
          <shadow type="math_number">
            <field name="NUM">0</field>
          </shadow>
        </value>
      </block>
      <block type="colour_blend">
        <value name="COLOUR1">
          <shadow type="colour_picker">
            <field name="COLOUR">#ff0000</field>
          </shadow>
        </value>
        <value name="COLOUR2">
          <shadow type="colour_picker">
            <field name="COLOUR">#3333ff</field>
          </shadow>
        </value>
        <value name="RATIO">
          <shadow type="math_number">
            <field name="NUM">0.5</field>
          </shadow>
        </value>
      </block>
    </category>
    <sep></sep>
    <category name="变量" colour="330" custom="VARIABLE"></category>
    <category name="函数" colour="290" custom="PROCEDURE"></category>
    <sep></sep>
    <category name="功能块库" colour="260" id="blockLibCategory"></category>
  </xml>

</body>
</html>
